﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace QLTK.User_Control
{
    public partial class XtraStore : DevExpress.XtraEditors.XtraUserControl
    {
        int i = 0;
        public XtraStore()
        {
            InitializeComponent();
        }

        private void XtraStore_Load(object sender, EventArgs e)
        {

            
        }

        private void buttonAdd_Click(object sender, EventArgs e)
        {
            
            addControl();
            
        }

        private void addControl()
        {
            TextBox txtTest = new TextBox();
            txtTest.Name = "TextBox_" + i;
           
            txtTest.Location = new System.Drawing.Point(10, 40 + i);
            txtTest.Size = new System.Drawing.Size(50, 25);
            xtraScrollableControlStore.Controls.Add(txtTest);
            i = i + 40;
        }

         


        private void buttonGet_Click(object sender, EventArgs e)
        {
            
        }

     
        

        //private void gridView1_RowUpdated(object sender, DevExpress.XtraGrid.Views.Base.RowObjectEventArgs e)
        //{
        //    if (!(gridView1.PostEditor() && gridView1.UpdateCurrentRow()))
        //    {
        //        return;
        //    }
        //    this.khoTableAdapter.Update(qLTKDataSet.Kho);
        //}


    }
}
